﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Monopoly;

namespace Monopoly_AcceptanceTest
{
    [TestClass]
    public class TestNewGameSystemOperation
    {
        private MGame _Game;

        [TestInitialize()]
        public void MyTestInitialize()
        {
            _Game = new MGame();
        }

        [TestMethod]
        public void NewGame_WhenTypical()
        {
            _Game.RoundTotal = 10;
            _Game.PlayerNumber = 8;

            _Game.NewGame();

            Assert.IsNotNull(_Game.Board);
            _Game.Players.ForEach(p => Assert.AreSame(_Game.Board.GoSquare, p.Location));
        }
    }
}
